home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / libcc / Makefile.os2 < prev    next >
Makefile  |  1997-08-09  |  2KB  |  81 lines

  1.  
  2. O = o
  3.  
  4. CCOBJS = datebook.$(O) address.$(O) todo.$(O) appInfo.$(O) memo.$(O) iambicExpense.$(O)
  5.  
  6. prefix = @prefix@
  7. exec_prefix = ${prefix}
  8. libdir = @libdir@
  9. cclib = libpicc.a
  10. srcdir = ../
  11. VPATH = ../
  12.  
  13. top_builddir = ..
  14.  
  15. CC = gcc
  16. CXX = gcc
  17. CFLAGS = -I../include -I$(srcdir)/../include -g -Zcrtdll -O2 -fno-strength-reduce -D__ST_MT_ERRNO__ -Wall
  18. # -DPADP_TRACE
  19. # -DNO_DLP_TRACE
  20. # -DNO_SERIAL_TRACE
  21. # -DDEBUG
  22. CXXFLAGS = -I../include -I$(srcdir)/../include -g -O2 -fno-strength-reduce -Wall
  23. AR = ar
  24. ARFLAGS = -cur
  25. RANLIB = ar -s
  26. RM = rm -f
  27. LIBTOOL = @LIBTOOL@
  28.  
  29. .SUFFIXES: .out .o .lo .la .cc .c .e .r .f .y .l .s .p
  30.  
  31. .cc.o:
  32.     $(CXX) $(CXXFLAGS) -c $*.cc
  33.  
  34. .cc.lo:
  35.     $(LIBTOOL) --mode=compile $(CXX) $(CXXFLAGS) -c $<
  36.  
  37. all: libpicc.a
  38.  
  39. libpicc.la: $(CCOBJS)
  40.     $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) \
  41.         -export-dynamic -static -rpath $(libdir) -version-info 0:0:0 \
  42.         -o libpicc.la $(CCOBJS)
  43.  
  44. libpicc.a: $(CCOBJS)
  45.     $(RM) libpicc.a
  46.     $(AR) $(ARFLAGS) libpicc.a $(CCOBJS)
  47.     $(RANLIB) libpicc.a
  48.     
  49. clean:
  50.     $(RM) *.o *.a core a.out *.orig *.lo *.la
  51.     $(RM) -r .libs
  52.  
  53. depend:
  54.     perl -i~ -ne 'print if 1../^#Depend/' Makefile.in ; gcc -MM -I../include *.cc >> Makefile.in
  55.  
  56. #Dependencies
  57. address.o: address.cc ../include/pi-source.h   \
  58.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  59.  ../include/pi-address.h ../include/pi-appinfo.h \
  60.  ../include/pi-appinfo.hxx ../include/pi-address.hxx
  61. appInfo.o: appInfo.cc ../include/pi-source.h   \
  62.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  63.  ../include/pi-appinfo.hxx
  64. datebook.o: datebook.cc ../include/pi-source.h   \
  65.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  66.  ../include/pi-datebook.h ../include/pi-appinfo.h \
  67.  ../include/pi-appinfo.hxx ../include/pi-datebook.hxx
  68. iambicExpense.o: iambicExpense.cc ../include/pi-source.h \
  69.    ../include/pi-socket.h ../include/pi-args.h \
  70.  ../include/pi-macros.h ../include/pi-iambicExpense.h \
  71.  ../include/pi-appinfo.h ../include/pi-appinfo.hxx \
  72.  ../include/pi-iambicExpense.hxx
  73. memo.o: memo.cc ../include/pi-source.h   \
  74.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  75.  ../include/pi-memo.h ../include/pi-appinfo.h \
  76.  ../include/pi-appinfo.hxx ../include/pi-memo.hxx
  77. todo.o: todo.cc ../include/pi-source.h   \
  78.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  79.  ../include/pi-todo.h ../include/pi-appinfo.h \
  80.  ../include/pi-appinfo.hxx ../include/pi-todo.hxx
  81.